Skip to content

Conversation

@Rahamath-unnisa
Copy link

Fixes #151

This PR updates the ElectrumClientBuilder (and related builder logic) to use std::time::Duration for timeout configuration, instead of a u8 value representing seconds.

Notes to the reviewers
Replaced timeout: Option with timeout: Option in the builder.
Adjusted all relevant function calls and tests accordingly.
Confirmed that all existing integration tests pass.

Checklists:
I've signed all my commits
I followed the contribution guidelines
I ran cargo fmt, cargo clippy, and cargo test before pushing
I’m linking the issue being fixed by this PR

Supersedes #178
This replaces the previous PR which had CI and branch issues.

@Rahamath-unnisa
Copy link
Author

Hi !I’ve re-signed all commits.The CI is pending maintainer approval — please let me know if any further changes are needed.
Thanks for your time and review!

ValuedMammal added a commit that referenced this pull request Nov 11, 2025
…Duration>`

5dc4bb6 ci: bump clippy to 1.90.0 (valued mammal)
e31cf47 feat!: Change ConfigBuilder::timeout to accept Option<Duration> (valued mammal)

Pull request description:

  Change `ConfigBuilder::timeout` to accept `Option<Duration>`. This makes the API more explicit and less error prone, as the caller no longer needs to assume the units of the given duration.

  Also updated the code to run clippy check in CI using rust 1.90.0.

  BREAKING:

  The `timeout` method on `ConfigBuilder` is changed to accept a `timeout: Option<Duration>`. Previously it was `Option<u8>`.

  fix #151
  fix #175
  Supersedes #179

ACKs for top commit:
  oleonardolima:
    ACK 5dc4bb6

Tree-SHA512: cd6ca6fdd91dcf6f193327ca40f6d37ea8b1b548102f080d0b72a0df509f6455aa50ee43148e4746ca6b295a30a78cb7d786fb0e90c050448e96e122a5b8c92d
@ValuedMammal
Copy link
Contributor

@Rahamath-unnisa Thanks for looking into it. This is now completed in #180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timeout should be set with a std::time::Duration

2 participants